// CryptUtility.h: interface for the CryptUtility class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CRYPTUTILITY_H__70AECE5E_BDFD_45B5_8695_6F4715B42A7B__INCLUDED_)
#define AFX_CRYPTUTILITY_H__70AECE5E_BDFD_45B5_8695_6F4715B42A7B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CryptUtility
{
public:
	CryptUtility();
	virtual ~CryptUtility();

	static bool Encrypt(const BYTE * pPlaintext, BYTE * pCryptotext, DWORD dwPlaintextLen, const BYTE * pPassword, DWORD dwPasswordLen);
	static bool Decrypt(const BYTE * pCryptotext, BYTE * pPlaintext, DWORD dwCryptotextLen, const BYTE * pPassword, DWORD dwPasswordLen);

	static std::string ByteArrayToString(BYTE * lpBuf, int nBufSize);
};

#endif // !defined(AFX_CRYPTUTILITY_H__70AECE5E_BDFD_45B5_8695_6F4715B42A7B__INCLUDED_)
